using NL;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Miya.EmisssionLauncher
{
    public class Dispenser_Tool : _OwnerOf<Dispenser>
    {
        public int Below = 400;
        public int Space = 240;
        // Start is called before the first frame update
        void Start()
        {

        }

        // Update is called once per frame
        void Update()
        {

        }

        private void OnGUI()
        {
            for (int i = 0; i < _Owner._Launches.Count; i++)
            {
                var lh= _Owner._Launches[i];
                if (GUI.Button(new Rect(100+i* Space, Screen.height - Below, 200, 40), lh.INFOOf("name")))
                {
                    lh.gameObject.SetActive(!lh.gameObject.activeInHierarchy);
                }
            }

        }
    }
}

